package model;

import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;

public class Grammar {
	private int id;
	private String name;
	private String title;
	private String content;
	public Grammar(String name, String title, String content) {
		super();
		this.name = name;
		this.title = title;
		this.content = content;
	}
	
	public Grammar(int id, String name, String title, String content) {
		super();
		this.id = id;
		this.name = name;
		this.title = title;
		this.content = content;
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	@Override
	public String toString() {
		return "Grammar [content=" + content + ", id=" + id + ", name=" + name
				+ ", title=" + title + "]";
	}
	
}
